<?php
/**
 * spsNewsletter subscriberS model
 * 
 * @author Satyan Shah <joomlaDesign@modernbridge.com>
 * @link http://www.modernbridge.com
 * @license GNU/GPL
 */
 
defined('_JEXEC') or die();

jimport( 'joomla.application.component.model' );


class spsnewslettersModelSubscribers extends JModel
{
	
	var $_data;


	function _buildQuery()
	{
		$query = ' SELECT * '
			. ' FROM #__spsnewsletter_subscribers '
		;
		return $query;
	}
	
	// gets all subscribers
	function getData()
	{
		// Lets load the data if it doesn't already exist
		if (empty( $this->_data ))
		{
			$query = $this->_buildQuery();
			$this->_data = $this->_getList( $query );
		}

		return $this->_data;
	}

}
